package com.cictec.middleware.core.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

/**
 * 调度指令
 * @author Administrator
 *
 */
@Table(name = "t_commond_dispatch")
public class CommondDispatch implements Serializable {
	
	@Transient
	private String cdUserName;
	
	
    public String getCdUserName() {
		return cdUserName;
	}

	public void setCdUserName(String cdUserName) {
		this.cdUserName = cdUserName;
	}

	@Id
    @Column(name = "cd_uuid")
    private String cdUuid;

    /**
     * 司机id
     */
    @Column(name = "cd_driver_uuid")
    private String cdDriverUuid;

    /**
     * 调度员id
     */
    @Column(name = "cd_user_uuid")
    private String cdUserUuid;

    /**
     * 调度指令代码
     */
    @Column(name = "cd_code")
    private Integer cdCode;

    /**
     * 调度指令名称
     */
    @Column(name = "cd_code_name")
    private String cdCodeName;

    /**
     * 创建指令时间
     */
    @Column(name = "cd_create_time")
    private Date cdCreateTime;

    /**
     * 司机应答时间
     */
    @Column(name = "cd_confirm_time")
    private Date cdConfirmTime;

    /**
     * 下发次数
     */
    @Column(name = "cd_senddown_times")
    private Integer cdSenddownTimes;

    /**
     * 目前状态（1：下发中，2：失败，3：成功）
     */
    @Column(name = "cd_status")
    private Integer cdStatus;

    /**
     * 失败原因
     */
    @Column(name = "cd_reason")
    private String cdReason;

    /**
     * 设备回应时间
     */
    @Column(name = "cd_received_time")
    private Date cdReceivedTime;

    /**
     * 备注
     */
    @Column(name = "cd_comment")
    private String cdComment;

    /**
     * 车辆id
     */
    @Column(name = "cd_bus_uuid")
    private String cdBusUuid;

    private static final long serialVersionUID = 1L;

    /**
     * @return cd_uuid
     */
    public String getCdUuid() {
        return cdUuid;
    }

    /**
     * @param cdUuid
     */
    public void setCdUuid(String cdUuid) {
        this.cdUuid = cdUuid == null ? null : cdUuid.trim();
    }

    /**
     * 获取司机id
     *
     * @return cd_driver_uuid - 司机id
     */
    public String getCdDriverUuid() {
        return cdDriverUuid;
    }

    /**
     * 设置司机id
     *
     * @param cdDriverUuid 司机id
     */
    public void setCdDriverUuid(String cdDriverUuid) {
        this.cdDriverUuid = cdDriverUuid == null ? null : cdDriverUuid.trim();
    }

    /**
     * 获取调度员id
     *
     * @return cd_user_uuid - 调度员id
     */
    public String getCdUserUuid() {
        return cdUserUuid;
    }

    /**
     * 设置调度员id
     *
     * @param cdUserUuid 调度员id
     */
    public void setCdUserUuid(String cdUserUuid) {
        this.cdUserUuid = cdUserUuid == null ? null : cdUserUuid.trim();
    }

    /**
     * 获取调度指令代码
     *
     * @return cd_code - 调度指令代码
     */
    public Integer getCdCode() {
        return cdCode;
    }

    /**
     * 设置调度指令代码
     *
     * @param cdCode 调度指令代码
     */
    public void setCdCode(Integer cdCode) {
        this.cdCode = cdCode;
    }

    /**
     * 获取调度指令名称
     *
     * @return cd_code_name - 调度指令名称
     */
    public String getCdCodeName() {
        return cdCodeName;
    }

    /**
     * 设置调度指令名称
     *
     * @param cdCodeName 调度指令名称
     */
    public void setCdCodeName(String cdCodeName) {
        this.cdCodeName = cdCodeName == null ? null : cdCodeName.trim();
    }

    /**
     * 获取创建指令时间
     *
     * @return cd_create_time - 创建指令时间
     */
    public Date getCdCreateTime() {
        return cdCreateTime;
    }

    /**
     * 设置创建指令时间
     *
     * @param cdCreateTime 创建指令时间
     */
    public void setCdCreateTime(Date cdCreateTime) {
        this.cdCreateTime = cdCreateTime;
    }

    /**
     * 获取司机应答时间
     *
     * @return cd_confirm_time - 司机应答时间
     */
    public Date getCdConfirmTime() {
        return cdConfirmTime;
    }

    /**
     * 设置司机应答时间
     *
     * @param cdConfirmTime 司机应答时间
     */
    public void setCdConfirmTime(Date cdConfirmTime) {
        this.cdConfirmTime = cdConfirmTime;
    }

    /**
     * 获取下发次数
     *
     * @return cd_senddown_times - 下发次数
     */
    public Integer getCdSenddownTimes() {
        return cdSenddownTimes;
    }

    /**
     * 设置下发次数
     *
     * @param cdSenddownTimes 下发次数
     */
    public void setCdSenddownTimes(Integer cdSenddownTimes) {
        this.cdSenddownTimes = cdSenddownTimes;
    }

    /**
     * 获取目前状态（1：下发中，2：失败，3：成功）
     *
     * @return cd_status - 目前状态（1：下发中，2：失败，3：成功）
     */
    public Integer getCdStatus() {
        return cdStatus;
    }

    /**
     * 设置目前状态（1：下发中，2：失败，3：成功）
     *
     * @param cdStatus 目前状态（1：下发中，2：失败，3：成功）
     */
    public void setCdStatus(Integer cdStatus) {
        this.cdStatus = cdStatus;
    }

    /**
     * 获取失败原因
     *
     * @return cd_reason - 失败原因
     */
    public String getCdReason() {
        return cdReason;
    }

    /**
     * 设置失败原因
     *
     * @param cdReason 失败原因
     */
    public void setCdReason(String cdReason) {
        this.cdReason = cdReason == null ? null : cdReason.trim();
    }

    /**
     * 获取设备回应时间
     *
     * @return cd_received_time - 设备回应时间
     */
    public Date getCdReceivedTime() {
        return cdReceivedTime;
    }

    /**
     * 设置设备回应时间
     *
     * @param cdReceivedTime 设备回应时间
     */
    public void setCdReceivedTime(Date cdReceivedTime) {
        this.cdReceivedTime = cdReceivedTime;
    }

    /**
     * 获取备注
     *
     * @return cd_comment - 备注
     */
    public String getCdComment() {
        return cdComment;
    }

    /**
     * 设置备注
     *
     * @param cdComment 备注
     */
    public void setCdComment(String cdComment) {
        this.cdComment = cdComment == null ? null : cdComment.trim();
    }

    /**
     * 获取车辆id
     *
     * @return cd_bus_uuid - 车辆id
     */
    public String getCdBusUuid() {
        return cdBusUuid;
    }

    /**
     * 设置车辆id
     *
     * @param cdBusUuid 车辆id
     */
    public void setCdBusUuid(String cdBusUuid) {
        this.cdBusUuid = cdBusUuid == null ? null : cdBusUuid.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", cdUuid=").append(cdUuid);
        sb.append(", cdDriverUuid=").append(cdDriverUuid);
        sb.append(", cdUserUuid=").append(cdUserUuid);
        sb.append(", cdCode=").append(cdCode);
        sb.append(", cdCodeName=").append(cdCodeName);
        sb.append(", cdCreateTime=").append(cdCreateTime);
        sb.append(", cdConfirmTime=").append(cdConfirmTime);
        sb.append(", cdSenddownTimes=").append(cdSenddownTimes);
        sb.append(", cdStatus=").append(cdStatus);
        sb.append(", cdReason=").append(cdReason);
        sb.append(", cdReceivedTime=").append(cdReceivedTime);
        sb.append(", cdComment=").append(cdComment);
        sb.append(", cdBusUuid=").append(cdBusUuid);
        sb.append("]");
        return sb.toString();
    }
}